#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>


int endian()
{
	union a
	{
		int n;
		char m;
	}uni;
	uni.n = 1;
	if (uni.m == 1)
		return 1;
	else
		return 0;
}

int main()
{
	printf("%d", endian());

	return 0;
}